import time

from selenium.webdriver.common.by import By

from base.app_base_page import AppBasePage


class PageEnterHome(AppBasePage):
    def __init__(self, driver):
        super().__init__(driver)
        self.__img = (By.ID, 'com.tpshop.malls:id/start_img')

    def page_swipe_enter_home(self):
        time.sleep(4)
        for i in range(3):
            self.driver.swipe(900, 1000, 100, 1000, 0)
        self.app_base_click(self.__img)
